package com.project.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.project.bean.LogUserBean;
import com.project.bean.ProjectCountBean;
import com.project.mapper.ProjectCountBeanMapper;
import com.project.service.ILogService;
import com.project.service.IProjectCountBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProjectCountBeanServiceImpl implements IProjectCountBeanService {
    @Autowired
    private ProjectCountBeanMapper mapper;
    @Override
    public void findAll() {

    }

    @Override
    public PageInfo<ProjectCountBean> findByItem(int pageON, Integer start, Integer end) {
        PageHelper.startPage(pageON, ILogService.PAGESIZE);
        PageInfo<ProjectCountBean> pageInfo = PageInfo.of(mapper.findByItem(start,end));
        return pageInfo;
    }
}
